package com.softeem.god.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.util.Date;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

/**
 * 
 * @TableName user
 */
@Schema(name = "用户")
@TableName(value ="user")
@Data
public class User {
    /**
     * 用户id
     */
    @TableId(type = IdType.AUTO)
    @Schema(name = "id",description = "用户id")
    private Integer id;

    /**
     * 昵称
     */
    @Schema(name = "nickname",description = "昵称")
    private String nickname;

    /**
     * 用户名
     */
    @Schema(name = "username",description = "用户名")
    private String username;

    /**
     * 密码
     */
    @Schema(name = "password",description = "密码")
    private String password;

    /**
     * 头像地址
     */
    @Schema(name = "avatar",description = "头像地址")
    private String avatar;

    /**
     * 性别
     */
    @Schema(name = "sex",description = "性别")
    private String sex;

    /**
     * 生日
     */
    @Schema(name = "birthday",description = "生日")
    private Date birthday;

    /**
     * 邮箱
     */
    @Schema(name = "email",description = "邮箱")
    private String email;

    /**
     * 电话
     */
    @Schema(name = "phone",description = "电话")
    private String phone;

    /**
     * 创建时间
     */
    @Schema(name = "create_time",description = "创建时间")
    private Date createTime;

    /**
     * 状态(0-禁用,1-正常)
     */
    @Schema(name = "status",description = "状态(0-禁用,1-正常)")
    private Integer status;
}